projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ef0edf
)
dropdown: Annotate the get_selected_item method
author
Corentin Noël
<corentin.noel@collabora.com>
Fri, 26 Jun 2020 07:59:12 +0000
(09:59 +0200)
committer
Corentin Noël
<corentin@elementary.io>
Fri, 26 Jun 2020 08:00:59 +0000
(10:00 +0200)
We need to specify the type as we already know that it is at least a GObject and in case of no selection, NULL is returned.
gtk/gtkdropdown.c
patch
|
blob
|
history
diff --git
a/gtk/gtkdropdown.c
b/gtk/gtkdropdown.c
index 8430c1450b45010ed61e3b33d0c40edc6081b0a0..721493dd3f0ea9140dfea39697177f2098b0867a 100644
(file)
--- a/
gtk/gtkdropdown.c
+++ b/
gtk/gtkdropdown.c
@@
-821,7
+821,7
@@
gtk_drop_down_get_selected (GtkDropDown *self)
*
* Gets the selected item. If no item is selected, %NULL is returned.
*
- * Returns: (transfer none): The selected item
+ * Returns: (transfer none)
(type GObject) (nullable)
: The selected item
*/
gpointer
gtk_drop_down_get_selected_item (GtkDropDown *self)